
const RouteView = {
  name: 'RouteView',
  render: h => h('router-view')
}

export default {
  path: '/presonal',
  name: 'presonal',
  redirect: '/presonal/start',
  component: RouteView,
  meta: { title: '统一待办', keepAlive: true, icon: 'unordered-list' },
  children: [
    {
      path: '/presonal/start',
      name: 'presonal-start',
      component: () => import('@/views/personal/start/Index'),
      meta: { title: '待发起', keepAlive: true }
    },
    {
      path: '/personal/todo',
      name: 'personal-todo',
      component: () => import('@/views/personal/Todo'),
      meta: { title: '待处理', keepAlive: true }
    },
    {
      path: '/personal/inprogress',
      name: 'personal-inprogress',
      component: () => import('@/views/personal/InProgress'),
      meta: { title: '进行中', keepAlive: true }
    },
    {
      path: '/personal/completed',
      name: 'personal-completed',
      component: () => import('@/views/personal/Completed'),
      meta: { title: '已办结', keepAlive: true }
    },
    {
      path: '/personal/returned',
      name: 'persoanl-returned',
      component: () => import('@/views/personal/Returned'),
      meta: { title: '已退回', keepAlive: true }
    },
    {
      path: '/personal/voided',
      name: 'personal-voided',
      component: () => import('@/views/personal/Voided'),
      meta: { title: '已作废', keepAlive: true }
    },
    {
      path: '/personal/draftbox',
      name: 'personal-draftbox',
      component: () => import('@/views/personal/DraftBox'),
      meta: { title: '草稿箱', keepAlive: true }
    },
    {
      path: '/personal/archived',
      name: 'personal-archived',
      component: () => import('@/views/personal/Archived'),
      meta: { title: '已归档', keepAlive: true }
    },
    {
      path: '/personal/sealed',
      name: 'personal-sealed',
      component: () => import('@/views/personal/Sealed'),
      meta: { title: '已封账', keepAlive: true }
    },
    {
      path: '/personal/track',
      name: 'personal-track',
      component: () => import('@/views/personal/Track'),
      meta: { title: '全流程跟踪', keepAlive: true }
    },
    {
      path: '/personal/entrust',
      name: 'personal-entrust',
      component: () => import('@/views/personal/Entrust'),
      meta: { title: '委托代理', keepAlive: true }
    }
  ]
}
